#nav #tab #welcome{
    position: absolute;
    right: 150px;
    top : 18px;
    font-size: 14px;
}
#nav #tab #quit{
    position: absolute;
    right: 10px;
    top : 18px;
    font-size: 14px;
}
#nav #tab #quit:hover{
    color: #FF0000;
    cursor:pointer
}
div#panel5{
    width: 40%;
    height: 300px;
    margin: 100px auto 0px;
}
div#panel5 div.panel-body{
    margin-left: 70px;
    margin-top: 70px;
}
div#panel5 div.panel-body input{
    width: 70%;
    display: inline-block;
}
div.layui-tab-item #timelineA{
    margin-left: 50%;
    position: absolute;
}
div.layui-tab-item #timelineB{
    margin-left: 50%;
    position: absolute;
}
div#panel2{
    width: 40%;
    height: 510px;
    margin: 100px auto 0;
}
div#panel2 div.panel-body input{
    margin-top: 20px;
}
div#panel2 div.panel-body button{
    margin-top: 10px;
    margin-left: 45%;
}
div.costConfig{
    margin-top: 100px;
    margin-left: 250px;
    width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.95);

}
div.configCost{
    margin-left: 50px;
    margin-top: 50px;
    width: 200px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    background: rgba(255,255,255,0.95);
}
.costConfig:hover, .configCost:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
div#costDoughnut{
    background: rgba(255,255,255,0.9);
    width:600px;
    height: 400px;
    position: absolute;
    top: 150px;
    left: 500px;
    box-shadow:
            0 8px 32px rgba(0,0,0,0.05),
            0 4px 8px rgba(0,0,0,0.02);
}



.usertop{
    font-size: 20px;
}

/* 导航栏立体效果增强 */
.nav-enhanced {
    box-shadow: var(--shadow-light);
    border-radius: 16px;
    background: var(--secondary-gradient);
    padding: 0 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-enhanced li {
    padding: 0 1.2rem;
    margin: 0 0.5rem;
    border-radius: 8px;
    transition: transform 0.2s;
}
.nav-enhanced li:hover {
    transform: translateY(-2px);
}

.nav-enhanced li::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.nav-enhanced li.layui-this::after {
    width: 100%;
    left: 0;
}

.nav-text {
    margin-left: 8px;
    vertical-align: middle;
}

.user-card {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 30px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.15);
}
.user-card:hover {
    background: rgba(255,255,255,0.2);
}

:root {
    --primary-color: #4361ee;
    --primary-light: #eaefff;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --success-color: #4ade80;
    --warning-color: #ffc914;
    --danger-color: #ef476f;
    --text-primary: #2b2d42;
    --text-secondary: #8d99ae;
    --background-light: #fafafa;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --transition-normal: all 0.3s ease;
}

/* 全局背景优化 */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e6e9f0 100%) fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
}
/* 面板立体效果 */
.panel {
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    box-shadow:
            0 8px 32px rgba(0,0,0,0.05),
            0 4px 8px rgba(0,0,0,0.02);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.panel-heading {
    background: linear-gradient(135deg, #6B8DD6 0%, #8E37D7 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    border: none;
}
.panel-heading {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px 12px 0 0;
    font-size: 18px;
    padding: 15px 20px;
}
/* 表格优化 */

.table {
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}
.table th {
    background: #F8FAFC;
    color: #64748B;
    font-weight: 600;
    padding: 15px;
    background: linear-gradient(180deg, #f8f9fc 0%, #e9ecef 100%);
}
.table td {
    padding: 12px 15px;
    border-top: 1px solid #F1F5F9;
}

.layui-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-radius: 8px;


}
.layui-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.layui-btn:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,0.5);
    opacity: 0;
    border-radius: 100%;
    transform: translate(-50%, -50%);
}
.layui-btn:active:after {
    animation: ripple 0.4s ease-out;
}
@keyframes ripple {
    0% { width: 5px; height: 5px; opacity: 1; }
    100% { width: 200px; height: 200px; opacity: 0; }
}
/* 图标微调 */
.layui-icon {
    transition: transform 0.2s ease;
}

.layui-input {
    transition: border-color 0.3s;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 8px 15px;

}
.layui-input:focus {
    border-color: var(--primary-color);
    box-shadow:
            0 0 0 3px rgba(74,144,226,0.1),
            0 2px 6px rgba(0,0,0,0.05);
}
.layui-timeline-item {
    position: relative;
    padding-right: 85px;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.layui-timeline-axis {
    left: -8px;
    top: 5px;
    font-size: 20px;
    color: var(--primary-color);
    background: white;
    padding: 2px;
}
.layui-timeline-content {

    padding: 15px 20px;
    border-radius: 8px;

    background: transparent;
    box-shadow: none;
}

/* 区块信息表格优化 */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(241, 243, 245, 0.5);
}

/* 弹窗背景优化 */
.layer-content {
    background: rgba(255,255,255,0.95) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(10px);
}

/* 新增呼吸动画 */
@keyframes breathing {
    0% { transform: scale(0.98); opacity: 0.9; }
    50% { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(0.98); opacity: 0.9; }
}

.panel-heading {
    animation: breathing 6s ease-in-out infinite;
}

/* 首页背景容器 */
.home-page-background {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/first.jpg'); /* 替换为你的背景图片 URL */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* 确保背景图片在最底层 */
    opacity: 1; /* 可选：设置透明度 */
}

/* 全局样式改进 */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e6e9f0 100%) fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
}

/* 导航栏样式增强 */
#nav #tab .layui-tab-title {
    height: 60px;
    line-height: 60px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.nav-enhanced {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 16px;
    background: linear-gradient(135deg, #6B8DD6 0%, #8E37D7 100%);
    padding: 0 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 30px;
}

.nav-enhanced li {
    padding: 0 1.2rem;
    margin: 0 0.5rem;
    border-radius: 8px;
    transition: transform 0.2s, background-color 0.3s;
    color: rgba(255,255,255,0.8);
    position: relative;
}

.nav-enhanced li:hover {
    transform: translateY(-2px);
    color: #fff;
    background-color: rgba(255,255,255,0.1);
}

.nav-enhanced li.layui-this {
    color: #fff;
    font-weight: 500;
    background-color: rgba(255,255,255,0.15);
}

.nav-enhanced li::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 0;
    height: 3px;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s;
    transform: translateX(-50%);
    border-radius: 3px;
}

.nav-enhanced li.layui-this::after {
    width: 30px;
}

/* 欢迎和退出按钮样式 */
#nav #tab #welcome {
    position: absolute;
    right: 150px;
    top: 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
}

#nav #tab #welcome:before {
    content: "\e770";
    font-family: 'layui-icon';
    margin-right: 5px;
    font-size: 16px;
}

#nav #tab #quit {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

#nav #tab #quit:before {
    content: "\e682";
    font-family: 'layui-icon';
    margin-right: 5px;
    font-size: 16px;
}

#nav #tab #quit:hover {
    color: #FF0000;
    cursor: pointer;
    transform: translateY(-2px);
}

/* 面板样式改进 */
.panel {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.panel-heading {
    background: linear-gradient(135deg, #6B8DD6 0%, #8E37D7 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    font-size: 18px;
    padding: 15px 20px;
    font-weight: 500;
}

.panel-body {
    padding: 20px;
}

/* 表格样式优化 */
.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.table th {
    background: rgba(107, 141, 214, 0.1);
    color: var(--text-primary);
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid rgba(107, 141, 214, 0.2);
}

.table td {
    padding: 12px 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,0.01);
}

.table tbody tr:hover {
    background-color: rgba(107, 141, 214, 0.05);
}

/* 按钮样式优化 */
.layui-btn {
    background: linear-gradient(135deg, #6B8DD6 0%, #8E37D7 100%);
    border-radius: 8px;
    padding: 0 20px;
    height: 38px;
    line-height: 38px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(107, 141, 214, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.layui-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(107, 141, 214, 0.4);
}

.layui-btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, .5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.layui-btn:active:after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    100% {
        transform: scale(30, 30);
        opacity: 0;
    }
}

/* 表单控件样式优化 */
.layui-input {
    height: 40px;
    line-height: 40px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 0 15px;
    transition: all 0.3s;
}

.layui-input:focus {
    border-color: #6B8DD6;
    box-shadow: 0 0 0 3px rgba(107, 141, 214, 0.1);
}

/* 时间线样式改进 */
.layui-timeline-item {
    padding-bottom: 20px;
    position: relative;
}

.layui-timeline-item:before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    z-index: 0;
    width: 2px;
    height: 100%;
    background-color: #e6e6e6;
}

.layui-timeline-axis {
    position: absolute;
    left: -5px;
    top: 0;
    z-index: 10;
    width: 16px;
    height: 16px;
    line-height: 16px;
    background-color: #fff;
    color: #6B8DD6;
    border-radius: 50%;
    text-align: center;
    border: 2px solid #6B8DD6;
}

.layui-timeline-content {
    padding-left: 25px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-left: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    transition: all 0.3s;
}

.layui-timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* 图表容器样式改进 */
div#costDoughnut {
    background: rgba(255,255,255,0.98);
    width: 600px;
    height: 400px;
    position: absolute;
    top: 150px;
    left: 500px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

div#costDoughnut:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* 卡片容器样式优化 */
div.costConfig, div.configCost {
    margin-top: 100px;
    width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.98);
    border-radius: 16px;
    padding: 20px;
}

div.costConfig {
    margin-left: 250px;
}

div.configCost {
    margin-left: 50px;
    margin-top: 50px;
    display: inline-block;
}

.costConfig:hover, .configCost:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

/* 用户信息表单样式优化 */
.headNurse-info-container {
    padding: 20px;
}

/* 添加一些动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel {
    animation: fadeIn 0.5s ease-out;
}

/* 用户卡片样式 */
.user-card {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 30px;
    background: rgba(255,255,255,0.15);
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
    margin-right: 10px;
}

.user-card:hover {
    background: rgba(255,255,255,0.25);
}

/* 其他原有样式保留 */
#nav #tab #welcome {
    position: absolute;
    right: 150px;
    top: 18px;
    font-size: 14px;
}

#nav #tab #quit {
    position: absolute;
    right: 10px;
    top: 18px;
    font-size: 14px;
}

div#panel5 {
    width: 40%;
    height: 300px;
    margin: 100px auto 0px;
}

div#panel5 div.panel-body {
    margin-left: 70px;
    margin-top: 70px;
}

div#panel5 div.panel-body input {
    width: 70%;
    display: inline-block;
}

div.layui-tab-item #timelineA {
    margin-left: 50%;
    position: absolute;
}

div.layui-tab-item #timelineB {
    margin-left: 50%;
    position: absolute;
}

div#panel2 {
    width: 40%;
    height: 510px;
    margin: 100px auto 0;
}

div#panel2 div.panel-body input {
    margin-top: 20px;
}

div#panel2 div.panel-body button {
    margin-top: 10px;
    margin-left: 45%;
}

/* 响应式优化 */
@media (max-width: 768px) {
    div#costDoughnut {
        position: relative;
        width: 100%;
        left: 0;
        top: 0;
        margin-top: 30px;
    }
    
    div.costConfig, div.configCost {
        margin-left: auto;
        margin-right: auto;
        margin-top: 30px;
        width: 90%;
    }
    
    div#panel5, div#panel2 {
        width: 90%;
    }
}

/* 全局容器 */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 弹出表单样式 */
.popup-form {
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    padding: 20px;
    width: 400px;
    margin: 0 auto;
}

.popup-form .form-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.popup-form .form-header i {
    font-size: 22px;
    color: #6B8DD6;
    margin-right: 10px;
}

.popup-form .form-header span {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.popup-form .form-item {
    margin: 20px auto;
    width: 90%;
}

/* 用户信息表单 */
.user-form {
    text-align: center;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    object-fit: cover;
}

.avatar-container {
    margin: 10px auto 20px;
    width: 100px;
    height: 100px;
    position: relative;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f3f7 0%, #e6e9f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8E37D7;
}

.avatar-placeholder i {
    font-size: 40px;
}

.upload-btn {
    margin-bottom: 20px;
    background: linear-gradient(135deg, #6B8DD6 0%, #8E37D7 100%);
}

/* 导航栏样式增强 */
.nav-enhanced {
    background: linear-gradient(135deg, #6B8DD6 0%, #8E37D7 100%);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 15px;
    padding: 0 20px;
    margin-bottom: 30px;
    height: 60px;
    line-height: 60px;
    position: relative;
}

/* 用户信息区域 */
.user-info-container {
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 1000;
}

.user-info {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 30px;
    padding: 5px 15px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.user-info:hover {
    background: rgba(255,255,255,0.25);
}

.user-info .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #fff;
}

.user-info .avatar-placeholder {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.user-info .avatar-placeholder i {
    font-size: 24px;
}

.user-info .user-name {
    color: white;
    font-weight: 500;
    font-size: 16px;
}

.user-menu {
    position: absolute;
    top: 55px;
    right: 0;
    width: 150px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 10px 0;
    display: none;
    z-index: 10;
}

.user-info:hover .user-menu {
    display: block;
}

.user-menu .menu-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.user-menu .menu-item:hover {
    background: #f5f5f5;
}

.user-menu .menu-item i {
    margin-right: 10px;
    color: #6B8DD6;
}

.user-menu .menu-item:last-child i {
    color: #FF3B30;
}

/* 主内容区域 */
.dashboard-content {
    background: rgba(255,255,255,0.5);
    border-radius: 15px;
    min-height: 500px;
    padding: 20px;
}

/* 首页欢迎卡片 */
.welcome-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
}

.welcome-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    width: 80%;
    max-width: 800px;
    padding: 40px;
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-header {
    margin-bottom: 20px;
}

.welcome-icon {
    font-size: 60px;
    color: #6B8DD6;
    margin-bottom: 20px;
    display: block;
    background: rgba(107, 141, 214, 0.1);
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.welcome-card h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.welcome-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.quick-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.quick-action-btn {
    background: linear-gradient(135deg, #6B8DD6 0%, #8E37D7 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 120px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(107, 141, 214, 0.3);
}

.quick-action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(107, 141, 214, 0.4);
}

.quick-action-btn i {
    font-size: 24px;
    margin-bottom: 8px;
}

.quick-action-btn span {
    color: var(--secondary-color);
    font-weight: 500;
}

/* 统计卡片样式 */
.stats-overview {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.stats-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    padding: 20px;
    flex: 1;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.stats-icon {
    background: rgba(107, 141, 214, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.stats-icon i {
    font-size: 30px;
    color: #6B8DD6;
}

.stats-info {
    flex: 1;
}

.stats-label {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 5px;
}

.stats-value {
    font-size: 24px;
    font-weight: 600;
    color: #2C3E50;
}

.secondary-stats {
    margin-top: 30px;
}

/* 图表容器 */
.chart-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 30px;
    height: 400px;
}

/* 按钮组样式 */
.btn-group {
    display: flex;
    gap: 10px;
}

/* 表格增强 */
.table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
}

.table th {
    background: rgba(107, 141, 214, 0.1);
    color: #2C3E50;
    font-weight: 600;
    padding: 15px;
}

.table td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #6B8DD6 0%, #8E37D7 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 99999;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(142, 55, 215, 0.25);
    background: linear-gradient(135deg, #8E37D7 0%, #6B8DD6 100%);
}

.back-to-top i {
    font-size: 20px;
    color: white;
    transition: all 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

/* 确保按钮在滚动容器中也能正确显示 */
.layui-tab-item {
    position: relative;
    min-height: 200px;
}

/* 消费一览图表布局 */
.overview-charts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.chart-column {
    width: 100%;
}

.right-charts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pie-chart-card, .category-chart-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    padding: 25px;
    transition: all 0.3s ease;
}

.pie-chart-card:hover, .category-chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.doughnut-container {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.pie-container {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-card {
    padding: 20px;
    margin-bottom: 20px;
}

.pie-chart-card {
    max-width: 550px;
    margin: 0 auto;
}

.chart-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.chart-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.chart-legend {
    display: flex;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.spent-color {
    background: #FFA500;
}

.remaining-color {
    background: #87CEEB;
}

.legend-text {
    font-size: 14px;
    color: #64748B;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .overview-charts-container {
        flex-direction: column;
    }
}

/* 预算建议样式 */
.budget-advice-container {
    margin: 15px 0;
    width: 100%;
    z-index: 100;
}

.budget-advice {
    background: rgba(107, 141, 214, 0.2);
    border-left: 6px solid #6B8DD6;
    padding: 18px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 20px 0;
}

.budget-advice i {
    font-size: 28px;
    color: #6B8DD6;
    margin-right: 15px;
}

.budget-advice span {
    font-size: 17px;
    color: #2C3E50;
    font-weight: 500;
}

/* 预算警告样式 */
.budget-warning {
    background: rgba(255, 59, 48, 0.15);
    border-left: 6px solid #FF3B30;
    box-shadow: 0 5px 20px rgba(255, 59, 48, 0.2);
}

.budget-warning i {
    color: #FF3B30;
    animation: pulse 1.5s infinite;
}

.budget-warning span {
    color: #FF3B30;
    font-weight: 600;
}

/* 高亮动画 */
@keyframes highlight {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(255, 59, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.budget-warning {
    animation: highlight 2s infinite;
}

/* 重新设计扇形图容器样式 */
.pie-chart-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.chart-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    position: relative;
}

.chart-wrapper canvas {
    max-width: 100%;
    height: auto !important;
}

/* 调整图表标题样式 */
.chart-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* 调整二级统计卡片样式 */
.secondary-stats {
    margin-top: 0;
    flex-wrap: wrap;
}

/* 消费一览图表布局调整 */
.overview-charts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.chart-column {
    width: 100%;
}

/* 分页组件样式 */
.pagination-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.page-size-selector {
    margin-right: 20px;
    margin-bottom: 10px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-controls button {
    margin: 0 3px;
    padding: 5px 10px;
    background-color: #4e73df;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination-controls button:hover {
    background-color: #375bcb;
}

.pagination-controls button:disabled {
    background-color: #c2c7e0;
    cursor: not-allowed;
}

.pagination-controls button.btn-info {
    background-color: #36b9cc;
}

.pagination-controls span {
    margin: 0 8px;
}

.pagination-controls input[type="number"] {
    width: 50px;
    padding: 4px;
    border-radius: 3px;
    border: 1px solid #ccc;
    text-align: center;
}

@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
    }
    
    .page-size-selector {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* 弹窗相关样式优化 */
.layui-layer {
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden !important;
}

.layui-layer-title {
    background-color: #4e73df !important;
    color: white !important;
    font-size: 16px !important;
    height: 50px !important;
    line-height: 50px !important;
    border-bottom: none !important;
    padding-left: 20px !important;
}

.layui-layer-setwin {
    top: 18px !important;
}

.layui-layer-setwin .layui-layer-close1 {
    background-position: 1px -40px !important;
}

.layui-layer-btn {
    border-top: 1px solid #eee !important;
    background-color: #f9f9f9 !important;
    padding: 10px 15px !important;
    text-align: right !important;
}

.layui-layer-btn a {
    border-radius: 4px !important;
    padding: 0 25px !important;
    height: 36px !important;
    line-height: 36px !important;
    margin-left: 10px !important;
}

.layui-layer-btn .layui-layer-btn0 {
    background-color: #4e73df !important;
    border-color: #4e73df !important;
}

/* 表单相关样式优化 */
.popup-form {
    padding: 20px !important;
}

.popup-form .form-header {
    margin-bottom: 20px !important;
    color: #333 !important;
}

.popup-form .form-item {
    margin-bottom: 15px !important;
}

.popup-form .layui-input-group {
    width: 100% !important;
}

.popup-form input, .popup-form select {
    height: 40px !important;
    line-height: 40px !important;
    padding: 0 12px !important;
    border-radius: 4px !important;
}

.popup-form .layui-input:focus, .popup-form select:focus {
    border-color: #4e73df !important;
    box-shadow: 0 0 0 2px rgba(78, 115, 223, 0.2) !important;
}

/* 删除确认弹窗样式 */
.layui-layer-content div[style*="padding: 20px; text-align: center;"] {
    font-size: 15px !important;
    line-height: 24px !important;
    color: #333 !important;
}

.layui-layer-content div[style*="color: red"] {
    font-size: 15px !important;
    line-height: 24px !important;
    font-weight: bold !important;
}

/* 全局主题色变量 */
:root {
    --primary-color: #4361ee;
    --primary-light: #eaefff;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --success-color: #4ade80;
    --warning-color: #ffc914;
    --danger-color: #ef476f;
    --text-primary: #2b2d42;
    --text-secondary: #8d99ae;
    --background-light: #fafafa;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --transition-normal: all 0.3s ease;
}

/* 整体容器优化 */
.dashboard-container {
    background-color: var(--background-light);
    min-height: 100vh;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 导航栏样式优化 */
.nav-enhanced {
    display: flex;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    padding: 5px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

.nav-enhanced li {
    border-radius: 6px;
    margin: 0 2px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.nav-enhanced li:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-enhanced li:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-enhanced li:hover:after {
    transform: scaleX(1);
}

.nav-enhanced li.layui-this {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.3);
}

.nav-enhanced li.layui-this:after {
    display: none;
}

.nav-enhanced li i {
    margin-right: 8px;
    font-size: 18px;
    vertical-align: middle;
}

/* 卡片样式优化 */
.stats-card, .welcome-card, .chart-card, .pie-chart-container {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
    overflow: hidden;
    border: none;
}

.stats-card:hover, .welcome-card:hover, .chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
}

/* 统计卡片图标 */
.stats-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-light);
}

.expense-icon {
    background: linear-gradient(135deg, #ffccd5, #ef476f);
    color: white;
}

.today-icon {
    background: linear-gradient(135deg, #c8e7ff, #4cc9f0);
    color: white;
}

.remaining-icon {
    background: linear-gradient(135deg, #d0f4de, #4ade80);
    color: white;
}

.avg-icon, .daily-icon, .days-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
}

/* 按钮美化 */
.layui-btn {
    border-radius: 6px;
    padding: 0 20px;
    font-weight: 500;
    transition: var(--transition-normal);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    background-color: var(--primary-color);
}

.layui-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--secondary-color);
}

.quick-action-btn {
    border-radius: 10px;
    transition: var(--transition-normal);
    background: white;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.quick-action-btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(67, 97, 238, 0.2);
}

.quick-action-btn i {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 8px;
}

/* 表格优化 */
.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: none;
}

.table th {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
    border: none;
    padding: 12px;
}

.table td {
    padding: 12px;
    vertical-align: middle;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.table tr:hover {
    background-color: var(--primary-light) !important;
}

/* 美化表单 */
.layui-input, select, .layui-input-group, .form-control {
    border-radius: 6px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 10px 12px !important;
    transition: var(--transition-normal) !important;
}

.layui-input:focus, select:focus, .form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.25) !important;
}

/* 预算提示框美化 */
.budget-advice-container {
    margin-bottom: 20px;
}

.budget-advice {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
    border-left: 5px solid var(--primary-color);
}

.budget-advice i {
    font-size: 24px;
    margin-right: 15px;
}

.budget-warning {
    background-color: #fff5f5;
    color: var(--danger-color);
    border-left: 5px solid var(--danger-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 71, 111, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 71, 111, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 71, 111, 0);
    }
}

/* 列表动画 */
.layui-timeline-item {
    transition: var(--transition-normal);
    padding: 0 0 20px 30px;
}

.layui-timeline-item:hover {
    transform: translateX(5px);
}

/* 增加响应式媒体查询 */
@media (max-width: 768px) {
    .nav-enhanced li {
        padding: 8px 12px;
    }
    
    .nav-text {
        display: none;
    }
    
    .stats-overview {
        flex-direction: column;
    }
    
    .stats-card {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* 增加页面加载动画 */
.dashboard-content {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 美化区块链信息页面 */
.pagination-container {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--card-shadow);
}

.pagination-controls button {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transition: var(--transition-normal);
}

.pagination-controls button:hover {
    background-color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.pagination-controls button.btn-info {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

/* 增加光滑的滚动行为 */
html {
    scroll-behavior: smooth;
}

/* 美化返回顶部按钮 */
.back-to-top {
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    transition: var(--transition-normal);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px) scale(1.05);
}

/* 图表容器美化 */
.chart-wrapper {
    padding: 20px;
    border-radius: 12px;
    background-color: white;
}

/* 愿望清单项样式 */
.layui-btn-radius {
    border-radius: 20px !important;
    padding: 2px 15px !important;
}

/* 表单标签和图标对齐 */
.record-label {
    display: flex;
    align-items: center;
}

.record-label i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* 记一笔表单优化 */
.record-panel {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: none;
    overflow: hidden;
}

.panel-heading {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.panel-heading i {
    margin-right: 10px;
    font-size: 18px;
}

.record-tab-title {
    background-color: var(--background-light);
    padding: 10px;
    border-radius: 8px;
}

.record-form-item {
    margin-bottom: 15px;
}

/* 添加精美的鼠标悬停效果 */
.user-menu .menu-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* 添加漂亮的复选框和单选按钮样式 */
.layui-form-checkbox[lay-skin=primary]:hover i {
    border-color: var(--primary-color);
}

.layui-form-checked[lay-skin=primary] i {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.layui-form-radio > i:hover, .layui-form-radioed > i {
    color: var(--primary-color);
}

/* 新增欢迎界面卡片效果 */
.welcome-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 30px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(76, 201, 240, 0.1));
    border-radius: 50%;
    z-index: 0;
}

.welcome-header {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.welcome-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

/* 区块链信息页面美化 */
.blockchain-header {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: var(--card-shadow);
}

.blockchain-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.blockchain-icon i {
    font-size: 30px;
    color: white;
}

.blockchain-title h2 {
    margin: 0 0 5px 0;
    color: var(--text-primary);
    font-size: 22px;
}

.blockchain-title p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 分页控件美化 */
.page-size-select {
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: white;
    transition: var(--transition-normal);
}

.page-size-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.pagination-btn {
    margin: 0 4px;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pagination-ellipsis {
    margin: 0 5px;
    color: var(--text-secondary);
}

.pagination-info {
    margin: 0 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.jump-page-container {
    display: flex;
    align-items: center;
    background-color: rgba(67, 97, 238, 0.05);
    padding: 5px 10px;
    border-radius: 8px;
    margin-left: 10px;
}

.jump-page-input {
    width: 50px;
    padding: 5px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0 8px;
    text-align: center;
}

.jump-btn {
    margin-left: 5px;
}

/* 欢迎页面图标容器 */
.header-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.2);
}

.welcome-icon {
    font-size: 40px !important;
    color: white !important;
}

/* 添加表格行效果 */
.table tbody tr {
    transition: var(--transition-normal);
}

.table tbody tr:hover td {
    background-color: var(--primary-light);
}

/* 美化区块链信息表格 */
.table-condensed th {
    white-space: nowrap;
    font-size: 14px;
}

.table-condensed td {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: var(--transition-normal);
}

.table-condensed td:hover {
    white-space: normal;
    word-break: break-all;
}

/* 添加页面切换过渡效果 */
.layui-tab-item {
    transition: opacity 0.3s ease;
}

.layui-tab-content {
    min-height: 500px;
}

/* 添加响应式优化 */
@media (max-width: 992px) {
    .pagination-container {
        flex-direction: column;
    }
    
    .page-size-selector {
        margin-bottom: 15px;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
    }
    
    .pagination-btn {
        margin-bottom: 8px;
    }
    
    .jump-page-container {
        margin-top: 10px;
    }
    
    .blockchain-header {
        flex-direction: column;
        text-align: center;
    }
    
    .blockchain-icon {
        margin: 0 0 15px 0;
    }
}

/* 添加精美滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
